home *** CD-ROM | disk | FTP | other *** search
/ Windows 6-Pak - Disc 5 / Windows 6-Pak (InfoMagic) (Disc 5) (1999).ISO / C&C++Tools / sbparser.exe / help / dllread.txt < prev    next >
Encoding:
Text File  |  1998-05-13  |  1007 b   |  21 lines

  1. Calling 32-bit DLL's built with Borland C++ from non-BC Apps
  2. ============================================================
  3. Currently, Borland C++ supports calling a DLL compiled with Borland C++ from
  4. applications created with other tools only if they are dynamically bound to the
  5. DLL. This is achieved by the application calling LoadLibrary at run-time to load
  6. the DLL and then calling GetProcAddress to retrieve the entry points for the
  7. functions exported from the DLL.
  8.  
  9. Static binding is not supported. From a C or C++ application, static binding is
  10. achieved by linking import records (either import libraries or entries in the
  11. IMPORTS section of the application's Module Definition File) to the calling
  12. application. 
  13.  
  14. Using Delphi 2.0, static binding is achieved using a declaration such as:
  15. function Foo(parm: Integer): Integer; stdcall; external 'my.dll' name 'Foo';
  16.  
  17. - and using Microsoft Visual Basic:
  18. Private Declare Function Foo Lib "my.dll" (ByVal parm As Integer) As Integer
  19.  
  20.  
  21.